<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<h3>감독</h3>
<hr align="left" width="150">
<center>
<table class="directorList">
	<thead>
	<tr>
		<th class="no">NO</th>
		<th class="name">이름</th>
	</tr>
	</thead>
	<tbody>	
	<c:forEach var="drectorVo" items="${requestScope.dlistvo.directorList}">	
	<tr>
	    <td>${drectorVo.directorNo }</td>
		<td>
			<a href="${initParam.root }admin/director_content.do?directorNo=${drectorVo.directorNo }">${drectorVo.name }</a>
		</td>
	</tr>
	</c:forEach>	
	</tbody>	
	<tfoot>
	<tr>
		<td colspan="2" align="right"><a href="${initParam.root}admin/director_write_view.do"><img src="${initParam.root}img/write_btn.jpg" border="0"></a></td>
	</tr>
	<tr align="center">
		<td colspan="2">
		<c:if test="${requestScope.dlistvo.pagingBean.previousPageGroup}">
			 <a href="${initParam.root }admin/directorList.do?pageNo=${requestScope.dlistvo.pagingBean.startPageOfPageGroup-1}">◀&nbsp;</a>
		</c:if>
		&nbsp;&nbsp;
		<c:forEach var="i" begin="${requestScope.dlistvo.pagingBean.startPageOfPageGroup}" end="${requestScope.dlistvo.pagingBean.endPageOfPageGroup}">
		 	<c:choose>
		 		<c:when test="${requestScope.dlistvo.pagingBean.nowPage!=i}">
		 			<a href="${initParam.root }admin/directorList.do?pageNo=${i}">${i}</a>
		 		</c:when>
			 	<c:otherwise>
					${i}
				</c:otherwise>
			</c:choose>
		</c:forEach>	 
		&nbsp;&nbsp;
		<c:if test="${requestScope.dlistvo.pagingBean.nextPageGroup}">
			<a href="${initParam.root }admin/directorList.do?pageNo=${requestScope.dlistvo.pagingBean.endPageOfPageGroup+1}"> ▶ </a>
		</c:if>	
		</td>
	</tr>
	</tfoot>
</table>
</center>